<?php

namespace app\index\controller;
use think\Controller;

class Note extends Controller
{

    public function index()
    {
        //    先初始化微信
        $app = app('wechat.official_account');
        /*$app->server->push(function($message){
            return 'hello,world';
        });*/
        return $app->server->serve();
    }
}